package com.df.ez_game.server.logic.status_sync.controllers.entity;

/**
 * 时间同步响应类 - 服务器返回的时间同步数据
 */
public class TimeSyncResp {
    private long sequenceId;      // 序列号，对应请求中的序列号
    private long requestTimestamp; // 客户端发送时间戳
    private long serverTimestamp;  // 服务器接收时间戳
    private long responseTimestamp; // 服务器响应时间戳
    private long serverCurrentTime; // 服务器当前时间
    
    // Getters and Setters
    public long getSequenceId() {
        return sequenceId;
    }
    
    public void setSequenceId(long sequenceId) {
        this.sequenceId = sequenceId;
    }
    
    public long getRequestTimestamp() {
        return requestTimestamp;
    }
    
    public void setRequestTimestamp(long requestTimestamp) {
        this.requestTimestamp = requestTimestamp;
    }
    
    public long getServerTimestamp() {
        return serverTimestamp;
    }
    
    public void setServerTimestamp(long serverTimestamp) {
        this.serverTimestamp = serverTimestamp;
    }
    
    public long getResponseTimestamp() {
        return responseTimestamp;
    }
    
    public void setResponseTimestamp(long responseTimestamp) {
        this.responseTimestamp = responseTimestamp;
    }
    
    public long getServerCurrentTime() {
        return serverCurrentTime;
    }
    
    public void setServerCurrentTime(long serverCurrentTime) {
        this.serverCurrentTime = serverCurrentTime;
    }
    
    @Override
    public String toString() {
        return "TimeSyncResp{" +
                "sequenceId=" + sequenceId +
                ", serverCurrentTime=" + serverCurrentTime +
                "}";
    }
}
